package com.ideazd.api.quartz;

import java.math.BigDecimal;
import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.ideazd.api.util.KeyWordReplace;

public class UpdateKeyWord implements Job{

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		System.out.println("更新非法词库");
		BigDecimal startDate = new BigDecimal(String.valueOf(new Date().getTime()));
		KeyWordReplace.createDataSource();
		BigDecimal endDate = new BigDecimal(String.valueOf(new Date().getTime()));
		float afterDate = endDate.subtract(endDate).floatValue();
		System.out.println("用时:"+afterDate/1000+"秒");
		
		//System.out.println("用时:"+secode+"秒");
	}

}
